package com.telit.firecommand.service;

import com.telit.firecommand.entity.WebsocketPushMsgLog;

import java.util.List;

/**
 * @author zhouyu
 * @description websocket消息日志接口
 */
public interface WebSocketPushMsgLogService {
    /**
     * 添加消息推送日志记录
     * @param websocketPushMsgLog
     */
    void addPushMsgLog(WebsocketPushMsgLog websocketPushMsgLog);

    /**
     * 修改为已读状态
     * @param eventType
     * @param eventId
     */
    void changeToHasRead(Integer eventType, Long eventId);


    /**
     * 查询所有已读消息
     * @param eventType
     * @param userId
     * @return
     */
    List<Long> queryHasReadMsg(Integer eventType, Long userId);

    /**
     * 查询所有已读消息
     * @param eventType
     * @param fireId
     * @return
     */
    Long queryHasRead(Integer eventType, Long fireId);
}
